﻿@model HomeController.ContactModel
<h2>Contact</h2>
<div class="contact">
    @using (Html.BeginForm("Contact", "Home", FormMethod.Post))
    {
        @Html.AntiForgeryToken()
        <table>
            <tr>
                <td class="label">@Html.LabelFor(m => m.Name):</td>
                <td>@Html.TextBoxFor(m => m.Name)</td>
                <td>@Html.ValidationMessageFor(m => m.Name)</td>
            </tr>
            <tr>
                <td class="label">@Html.LabelFor(m => m.Email):</td>
                <td>@Html.TextBoxFor(m => m.Email)</td>
                <td>@Html.ValidationMessageFor(m => m.Email)</td>
            </tr>
            <tr>
                <td class="label">@Html.LabelFor(m => m.Message):</td>
                <td>@Html.TextAreaFor(m => m.Message)</td>
                <td>@Html.ValidationMessageFor(m => m.Message)</td>
            </tr>
            <tr>
                <td colspan="2" align="right">@Html.TextBox("Submit", "Submit", new { type = "submit", @class = "btnSubmit" })</td>
            </tr>
        </table>
    }
</div>
